﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApI0001.DoMain.Entity;

namespace WebApI0001
{
    public class Admin0001DbContext:DbContext
    {

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("server=N8QU1VYXG0M3H5J;database=Amdin0001;uid=sa;pwd=123456");
        }


        public DbSet<ProDuck> ProDucks { get; set; }

        public DbSet<Brand> Brands { get; set; }

        public DbSet<Category> Categories { get; set; }
    }
}
